package org.shangma.exercise;

/**
 * @classname:demo02
 * @description:
 * @author: Mr.Z
 * @date: 2020/11/24 18:52
 * @version: 0.1
 * @since:1.8
 */
public class demo02 {
    public static void main(String[] args) {
//        .根据天数（46）计算周数和剩余的天数
        int day = 46;
        int week = day/7;
        int surplusday = day%7;
        System.out.println("周数为："+week);
        System.out.println("剩余天数:"+surplusday);
    }
}
